<?php
class letter_m_newsl8r extends a_base_model_datamapper{
    public function __construct($id=NULL){
        $this->table = "newsletters";
        $this->has_one['letter_groups_m_newsl8r'] = array(
            'class' => 'letter_groups_m_newsl8r',
            'join_other_as' => 'letter_group',
            'join_self_as' => 'letter'
        );
        parent::__construct($id);
    }

    public function get_letter_group(){
        return new letter_groups_m_newsl8r($this->group_id);
    }

}
?>